﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MoneyWentWhere.DataModel.Binding
{
    public class TxSettingsTypeConverter : StringTypeConverter<TxSettings>
    {
        protected override string ToString(TxSettings value)
        {
            if (value == null) { return ""; }
            return value.ToRepString();
        }

        protected override TxSettings FromString(string rep)
        {
            return TxSettings.Parse(rep);
        }
    }
}
